package com.lottery.material.service.portal.report.impl;

import com.lottery.material.dao.base.BaseDao;
import com.lottery.material.dao.portal.report.ReportRecordDao;
import com.lottery.material.entity.report.ReportRecord;
import com.lottery.material.service.base.impl.BaseServiceImpl;
import com.lottery.material.service.portal.report.ReportRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:    举报服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-11 10:13
 */
@Service
@Slf4j
public class ReportRecordServiceImpl extends BaseServiceImpl<ReportRecord, Integer> implements ReportRecordService {

    @Autowired
    private ReportRecordDao reportRecordDao;

    @Override
    public BaseDao<ReportRecord, Integer> getBaseDao() {
        return reportRecordDao;
    }

    /**
     * description: 保存举报记录
     * author sunny
     * createDate 2019-04-11 上午 10:14
     * @param reportRecord
     */
    @Override
    public boolean saveReportRecord(ReportRecord reportRecord) {
        ReportRecord resultObject = save(reportRecord);
        if(null != resultObject){
            return true;
        }else{
            return false;
        }
    }
}
